#{extends 'Admin.html'/}
#{set title:'Admin -> Input SEO' /}


<h1>Quản lý SEO</h1>
<div class="adminTitleIntro">Thiết lập SEO cho trang web</div>

#{form @SeoConfigs.save(), class:"simpleForm", enctype:'multipart/form-data', id:"formSEO"}
<input type="hidden" value="${dto.id}" name="dto.id">

<p>
    <label> Id : </label>
    <input type="text" value="${dto.id}" name="dto.id" disabled="true">
</p>

<p>
    <label> Language : </label>
    <input type="text" value="${lang}" name="dto.language" disabled="true">
</p>

<p>
    <label> Title : </label> <input type="text" value="${dto.title}" name="dto.title">
</p>

<p>
    <label> Description : </label> <input type="text" value="${dto.description}" name="dto.description">
</p>

<p>
    <label> Keyword : </label> <input type="text" value="${dto.keyword}" name="dto.keyword">
</p>

<p>
    <label> Page : </label>
    #{if dto != null}
        #{select 'dto.page', items:sitemap, valueProperty:'code', labelProperty:'name', id:'page', value:dto.page /}
    #{/if}
    #{else}
        #{select 'dto.page', items:sitemap, valueProperty:'code', labelProperty:'name', id:'page'/}
    #{/else}
</p>

<br class="clearfloat">

<div class="controls">
    <input type="submit" value="Save" />
    <input type="button" value="Cancel" onclick="document.href = '/SeoConfigs/list'"/>
</div>

#{/form}

#{if dto.id != null }
    #{form @delete(dto.id)}
    <p class="crudDelete">
        <input type="submit" value="&{'crud.delete', type.modelName}" />
    </p>
    #{/form}
#{/if}